<template>
  <div id="app">
	  <!-- keep-alive 只对同级组件有效 -->
	<keep-alive :include="cachePages">
		<router-view></router-view>
	</keep-alive>
  </div>
</template>
<script>
	import {mapState} from 'vuex'
	export default{
		name:'App',
		computed:{
			...mapState(['cachePages'])
		}
	}
</script>
<style lang="less">
	
</style>
